home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7252 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: daily-planet.execpc.com!usenet
  2. From: innuendo@execpc.com (Jonathan Gapen)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Datatypes sound playing help please
  5. Date: 13 Apr 1996 01:05:59 GMT
  6. Organization: esCom Amiga Madison Enthusiast's Organisation
  7. Message-ID: <4kmuln$kpe@daily-planet.execpc.com>
  8. References: <dave.0bwf@ccom.co.nz>
  9. NNTP-Posting-Host: midge.execpc.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-NewsSoftware: GRn 2.1 Feb 19, 1994
  14.  
  15.  
  16. In article <dave.0bwf@ccom.co.nz> dave@ccom.co.nz (David Eaves) writes:
  17. > is it possible to detect when datatypes is finished playing a sound under
  18. > V39?  I want to start a sound playing and then wait until it is done.
  19. > V40 provides SDTA_SignalTask/SDTA_SignalBit that you can Wait() on
  20. > after calling DoMethod(), but how do you do this under V39?
  21.  
  22.    You don't.
  23.    You *can* grab the period from SDTA_VoiceHeader, the SDTA_SampleLength, and
  24. SDTA_Cycles to calculate yourself how long the sound will take to play.  It's not a
  25. pretty solution, though, and using the v40 version is the best way.
  26.    Not to toot my own horn, but I have written a replacement sound.datatype which
  27. supports SDTA_SignalTask/SDTA_SignalBit, and runs under AmigaOS 3.0, but I'm waiting on
  28. the NDUK 3.1 to release it, in order to clean up a few things.
  29.  
  30. -- 
  31. Jonathan Gapen (innuendo@execpc.com)
  32. Bread in, toast out. How does it DO that?
  33.